package com.gxa.user.recycling.service.impl;

import com.gxa.core.recycling.pojo.Waste;
import com.gxa.core.recycling.service.impl.BaseServiceImpl;
import com.gxa.user.recycling.mapper.WastesMapper;
import com.gxa.user.recycling.service.WasteTypeService;
import com.gxa.user.recycling.service.WastesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("wastesService")
@Transactional(rollbackFor = {Throwable.class})
public class WastesServiceImpl extends BaseServiceImpl<Waste> implements WastesService {
    @Autowired
    WastesMapper wastesMapper;
    @Override
    public List<Waste> selectByType(Long tid) {
        List<Waste> wastes = wastesMapper.selectByType(tid);
        return wastes;
    }
}
